projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a33892
)
qbman_portal.c: Update BUG_ON() call in qbman_swp_mc_submit
author
Tom Rini
<
[email protected]
>
Sat, 28 Nov 2015 13:04:42 +0000
(08:04 -0500)
committer
York Sun
<
[email protected]
>
Mon, 14 Dec 2015 02:27:29 +0000
(18:27 -0800)
With gcc-5.x we get a warning about the ambiguity of BUG_ON(!a != b) and
becomes BUG_ON((!a) != b). In this case reading of the function leads to
us wanting to rewrite this as BUG_ON(a != b).
Cc: Prabhakar Kushwaha <
[email protected]
>
Cc: Geoff Thorpe <
[email protected]
>
Cc: Haiying Wang <
[email protected]
>
Cc: Roy Pledge <
[email protected]
>
Cc: York Sun <
[email protected]
>
Signed-off-by: Tom Rini <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
Reviewed-by: York Sun <
[email protected]
>
drivers/net/fsl-mc/dpio/qbman_portal.c
patch
|
blob
|
history
diff --git
a/drivers/net/fsl-mc/dpio/qbman_portal.c
b/drivers/net/fsl-mc/dpio/qbman_portal.c
index 5fa8d953e5c0d163a214e146aa8f6dc13ddfeacd..449ff8a8ba3235515c07120df4b35b788743d6bd 100644
(file)
--- a/
drivers/net/fsl-mc/dpio/qbman_portal.c
+++ b/
drivers/net/fsl-mc/dpio/qbman_portal.c
@@
-117,7
+117,7
@@
void qbman_swp_mc_submit(struct qbman_swp *p, void *cmd, uint32_t cmd_verb)
{
uint32_t *v = cmd;
#ifdef QBMAN_CHECKING
- BUG_ON(
!
p->mc.check != swp_mc_can_submit);
+ BUG_ON(p->mc.check != swp_mc_can_submit);
#endif
lwsync();
/* TBD: "|=" is going to hurt performance. Need to move as many fields